package csc.fresher.dao;

import java.util.List;

import csc.fresher.entity.AccountHasInterestRate;
import csc.fresher.entity.SavingAccountHasInterestRate;

public interface AccountHasInterestRateDao {
	/**
	 * @param accountHasInterestRate
	 */
	public long insert(AccountHasInterestRate accountHasInterestRate);
	/**
	 * @param accountHasInterestRate
	 */
	public void update(AccountHasInterestRate accountHasInterestRate);
	/**
	 * @param accountNumberID
	 * @return
	 */
	public AccountHasInterestRate getAccountHasInterestRate(long accountNumberID);
	/**
	 * @param accountNumberID
	 * @return
	 */
	public List<AccountHasInterestRate> getAllAccountHasInterestRates(long accountNumberID);
	/**
	 * @param startIndex
	 * @param maxReturn
	 * @return
	 */
	public List<AccountHasInterestRate> getListAccountHasInterestRates(int startIndex, int maxReturn);
	/**
	 * @param accountNumberID
	 * @return
	 */
	public int totalAccountHasInterestRates(int accountNumberID);
	SavingAccountHasInterestRate getInterestRateByAccountNumberID(
			long accountNumberID);
	SavingAccountHasInterestRate getNewestInterestRateByAccountNumberID(
			long accountNumberID);
}
